# coding=utf-8
"""
Author: Mr.夏末
@Function: 循环的控制
"""
for i in range(1,8):
    if i < 6:
        print("星期",i,"上班")
    else:
        # 终止循环
        break
        print("星期",i,"休息")

print("----------------------------------")

# 一旦执行了continue，就是说结束本次循环了，进入下一次循环
for i in range(1,8):
    if i %2 ==0:
        print("星期", i, "上课")
    else:
        continue
        print("星期",i,"休息")
    print(i)

print("----------------------------------------")

# len:获取字符串的长度
s = 'abc'
print(len(s))
